package com.example.user.util;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;

public class Console {

    public static  void  log(Object obj){
        System.out.println(obj);
    }
    public static  void  log(String msg,Object obj) throws JsonProcessingException {
        ObjectMapper mapper = new ObjectMapper();
        System.out.println(msg+"======================="+mapper.writeValueAsString(obj));
    }
    public static  void  json(Object obj) throws JsonProcessingException {
        ObjectMapper mapper = new ObjectMapper();
        System.out.println(mapper.writeValueAsString(obj));
    }

}
